<!--{include file="head.htm"}-->
<!--{include file="nav.htm"}-->

<div class="span11">

		  <div class="row-fluid">
            <h3><!--{$title}--></h3>
          </div>
           <hr>
			<form class="form-search" action="" method="post">
			{if $smarty.session.roleid == "1" }	
			<a href="?action=address&do=new" class="btn btn-primary pull-right"><i class="icon-pencil icon-white"></i> 新建</a>
			{else}
		     
		    {/if}		
			
			<input type="text" name="kewords" class="input-small" value="<!--{$smarty.request.kewords}-->"  placeholder="关键词">	
			<!--{$select_userlist}-->
              <input class="hidden-phone" type="text" name="time_start" value="<!--{$smarty.request.time_start}-->"  id="datepicker" placeholder="开始时间" class="input-small"/>
			  
			- <input class="hidden-phone" type="text" name="time_over" value="<!--{$smarty.request.time_over}-->"  id="datepicker2" placeholder="结束时间" class="input-small"/>
			<button type="submit" class="btn"><i class="icon-search"></i> 查询</button>
            <a href="" class="btn hidden-phone"><i class="icon-th-list"></i> 全部</a>
			
			</form> 
          <div class="row-fluid">
            <div class="span12">

				<table class="table table-bordered table-striped">
					<thead>
					  <tr>
						<th class="hidden-phone"> #</th>
						<th>姓名</th>
						<th class="hidden-phone">性别</th>
						<th>手机号码</th>
						<th class="hidden-phone">住址</th>
				        <th>操作权限</th>
						
					  </tr>
					</thead>
					<tbody>
					 
			<!--{foreach from=$list item=row}-->
				<tr>
					<td class="hidden-phone"><!--{$row.id}--></td>
					<td><!--{$row.name}--></td>
					<td class="hidden-phone"><!--{$row.sex}--></td>
				    <td><!--{$row.tel}--></td>
					<td class="hidden-phone"><!--{$row.address}--></td>
					<td>
		{if $smarty.session.roleid == "1" }	
		<a class="btn btn-small" href="?action=address&do=edit&id=<!--{$row.id}-->"><i class="icon-edit"></i> 编辑</a>	
		<a class="btn btn-small" href="?action=address&do=del&id=<!--{$row.id}-->" onclick="if(!confirm( '确认要删除吗? ')){return false;}"><i class="icon-trash"></i> 删除</a>
       {else}
       无权限 
       {/if}		
					</td>
            
				</tr>			
			<!--{/foreach}-->
 
					</tbody>
				  </table>
				  
				<div class="pagination pagination-centered">
					  <ul class="">
						<li><span class="btn">共<!--{$total}-->条</span></li>
						<!--{$page}-->
					 </ul>
				</div>
	  
            </div><!--/span-->
          </div><!--/row-->
		  
		  
        </div><!--/span-->

<!--{include file="foot.htm"}-->